import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:learn_flt/app/routes/app_pages.dart';

import '../controllers/home_controller.dart';

class HomeView extends GetView<HomeController> {
  const HomeView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    print('========> build HomeView');
    return Scaffold(
      appBar: AppBar(
        title: const Text('HomeView'),
        centerTitle: true,
      ),
      body: GestureDetector(
        onTap: (){
          Get.toNamed(Routes.ME);
        },
        child: const Center(
          child: Text('home view'),
        ),
      ),
    );
  }
}
